package com.snowy.hidden.biz.mapper;

import com.snowy.hidden.biz.domain.model.Task;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 任务表(Task)表数据库访问层
 *
 * @author cl
 * @since 2025-11-13 13:56:06
 */
@Mapper
public interface TaskMapper extends BaseMapper<Task>{

    /**
     * 判断任务是否存在，编写sql直接返回boolean
     *
     * @param reportId
     * @return
     */

    @Select("select count(1) from tb_task where report_id=#{reportId}")
    boolean isExistTask(String reportId);
}
